package blogcatback.constants;

/**
 * @author Lijingjing
 * @date 2024/8/29 18:07
 * @description CommonConst
 */
public class CommonConst {

    /**
     * Token过期时间：10天
     */
    public static final long TOKEN_EXPIRE = 864000;

    /**
     * 忘记密码时获取验证码用于找回密码
     */
    public static final String FORGET_PASSWORD = "forget_password_";

    /**
     * 超级管理员的用户Id
     */
    public static final int ADMIN_USER_ID = 1;

    /**
     * 根据用户ID获取Token
     */
    public static final String USER_TOKEN = "user_token_";

    public static final String ADMIN_TOKEN = "admin_token_";

    /**
     * 根据用户ID获取Token
     */
    public static final String USER_TOKEN_INTERVAL = "user_token_interval_";

    public static final String ADMIN_TOKEN_INTERVAL = "admin_token_interval_";

    /**
     * Token
     */
    public static final String USER_ACCESS_TOKEN = "user_access_token_";

    public static final String ADMIN_ACCESS_TOKEN = "admin_access_token_";

    public static final String TOKEN_HEADER = "Authorization";

    /**
     * 密钥
     */
    public static final String CRYPOTJS_KEY = "sarasarasarasara";
}
